package com.minhua.jijiehao2.mainframe.circle.circleFragment.impl

import com.minhua.jijiehao2.bean.BaseBean
import com.minhua.jijiehao2.bean.CircleBean
import com.minhua.jijiehao2.http.*
import com.minhua.jijiehao2.mainframe.circle.circleFragment.imp.ICircleModel

class CircleModel : ICircleModel {
    override fun getAllInfo(map: ParamsMap, callBack: CallBack<CircleBean>) {
        HttpController<CircleBean>().doHttp(
                ApiClient.getInstance().api.getAllInfo(map.toRequestBody()),
                object : BaseSubscriber<CircleBean>() {
                    override fun dealData(t: BaseBean<CircleBean>) {
//                        super.dealData(t)
                        callBack.onSuccess(t)
                    }
                },
                false
        )
    }
}